﻿#region Imports
using System.ComponentModel.Composition;
using System.Threading;
using System.Windows.Controls;
using System.Windows.Markup;
using Jounce.Core.View;
using Jounce.Core.ViewModel;
using Jounce.Regions.Core;
#endregion

namespace JounceSilverlightDemo.Views
{
    [ExportAsView("HeaderPage")]
    [ExportViewToRegion("HeaderPage", "HeaderRegion")]
    public partial class vwHeader : UserControl
    {
        #region Properties
        [Export]
        public ViewModelRoute Binding
        {
            get { return ViewModelRoute.Create("HeaderVM", "HeaderPage"); }
        }
        #endregion

        #region Constructors
        public vwHeader()
        {
            InitializeComponent();
            this.Language = XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name);
        }
        #endregion
    }
}
